package com.momo.seckilling.strategy.test;

/**
 * Created by li on 2019/3/17.
 */
public class Context {
    //构造函数，你要使用那个妙计

    private IStrategy straegy;

    public Context(IStrategy strategy) {

        this.straegy = strategy;
    }

//使用计谋了，看我出招了

    public void operate() {

        this.straegy.operate();

    }
}
